package io.seata.samples.integration.order.controller;


import io.seata.samples.integration.entity.TOrder;
import io.seata.samples.integration.service.ITOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  订单服务
 * </p>
 *
 * * @author lidong
 * @since 2019-09-04
 */
@RestController
@RequestMapping("/order")
public class TOrderController {


    @Autowired
    private ITOrderService orderService;



    @PostMapping("add")
    public String add(@RequestBody TOrder tOrder){
        return orderService.add(tOrder);
    }
}

